home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / source_code / dhtmlunl / dhtml.exe / CD Content / Chap26 / dun26_5.txt < prev    next >
Encoding:
Text File  |  1997-12-18  |  1.1 KB  |  47 lines

  1. var count = 0;
  2.  
  3.  
  4.  
  5. function preLoad() {
  6.  
  7.     core = new Image();
  8.  
  9.     core.src = "../images/core.gif";
  10.  
  11.     core.onLoad = loadCheck();
  12.  
  13.  
  14.  
  15.     closedeye = new Image();
  16.  
  17.     closedeye.src = "../images/closedeye.gif";
  18.  
  19.     closedeye.onLoad = loadCheck();
  20.  
  21.  
  22.  
  23.     openeye = new Image();
  24.  
  25.     openeye.src = "../images/openeye.gif";
  26.  
  27.     openeye.onLoad = loadCheck();
  28.  
  29.  
  30.  
  31.     flare = new Image();
  32.  
  33.     flare.src = flare_img;
  34.  
  35.     flare.onLoad = loadCheck();
  36.  
  37.  
  38.  
  39.     guru = new Image();
  40.  
  41.     guru.src = "../images/guru.gif";
  42.  
  43.     guru.onLoad = loadCheck();
  44.  
  45.  
  46.  
  47.     legs = new Image();
  48.  
  49.     legs.src = "../images/legs.gif";
  50.  
  51.     legs.onLoad = loadCheck();
  52.  
  53.  
  54.  
  55.     sun = new Image();
  56.  
  57.     sun.src = sun_img;
  58.  
  59.     sun.onLoad = loadCheck();
  60.  
  61.  
  62.  
  63.     guide_off = new Image();
  64.  
  65.     guide_off.src = "../images/guide_off.gif";
  66.  
  67.     guide_off.onLoad = loadCheck();
  68.  
  69.  
  70.  
  71.     guide_on = new Image();
  72.  
  73.     guide_on.src = "../images/guide_on.gif";
  74.  
  75.     guide_on.onLoad = loadCheck();
  76.  
  77. }
  78.  
  79.  
  80.  
  81. function loadCheck() {
  82.  
  83.     count++;
  84.  
  85.     if(count == 9) {
  86.  
  87.         positionLayers();
  88.  
  89.     }
  90.  
  91. }
  92.  
  93.